function gets(pageNum) {
    var a=$("#po_number").val();
    var b=$("#po_name").val();
    var c=$("#po_state").val();
    var d=$("#podi_hid").val();
    var e=$("#start_time").val();
    var f=$("#over_time").val();
    var g=$("#di_number").val();
    var h=$("#c_name").val();
    var i=$("#jixing").val();
    var j=$("#danwei").val();
    var k=$("#cc").val();
    var l=$("#qiye").val();
    var m=$("#shangpin").val();
    var n=$("#ruku_time").val();
    var s=$("#ruku_time1").val();
    var o=$("#dcid").val();
    var pageN = pageNum;
    $.ajax({
        url: '/myspringboot/select/findcaigoudan',
        type: 'post',
        dataType: "json",
        data:{ponumber:a,
            poname:b,
            postate:c,
            podihid:d,
            dinumber:g,
            cname:h,
            jixing1:i,
            //guige1:j,
            danwei1:j,
            ccc:k,
            qiye1:l,
            shangpin1:m,
            rukutime:n,
            dcid1:o,
            pageNum:pageN
        },

        success:function(result) {
            var list = result.data.list;
            yibu(result.data.pages,result.data.pageNum);
            $(".a").empty();
            for (i=0;i<list.length;i++) {
                //序号
                var diId = list[i].diId;
                //采购单编号
                var purchaseOrder = list[i].purchaseOrder;
                if (purchaseOrder = null) {
                    var poNumber = purchaseOrder.poNumber;
                    //采购单名称
                    var poName =purchaseOrder.poName;
                    //开始时间
                    var time1 = purchaseOrder.poCreateTime;
                    //结束时间
                    var time2 = purchaseOrder.poSupplyTime;
                }else {
                    var poNumber="null"
                    //采购单名称
                    var poName="null"
                    //开始时间
                    var time1 ="null"
                    //结束时间
                    var time2 ="null"
                }

                //采购医院
                var hospital = list[i].hospital;
                if (hospital != null) {
                    var yuyuan = hospital.hName;

                }

                //流水号
                var diNumer = list[i].diNumer;
                //通用名
                var diName = list[i].diName;
                //商品名
                var drugAtegory = list[i].drugAtegory;
                if (drugAtegory!=null){
                    var daName = drugAtegory.daName;
                } else {
                    var daName ="null"
                }

                //剂型
                var diForm = list[i].diForm;
                //规格
                var diSpecifications = list[i].diSpecifications;
                //单位
                var diUnit = list[i].diUnit;
                //转换系数
                var diCc = list[i].diCc;

                var $tr = '<tr>'+
                    '<td>'+diId+'</td>'+
                    '<td>'+poNumber+'</td>'+
                    '<td>'+poName+'</td>'+
                    '<td>'+yuyuan+'</td>'+
                    '<td>'+time1+'</td>'+
                    '<td>'+time2+'</td>'+
                    '<td>'+diNumer+'</td>'+
                    '<td>'+diName+'</td>'+
                    '<td>'+daName+'</td>'+
                    '<td>'+diForm+'</td>'+
                    '<td>'+diSpecifications+'</td>'+
                    '<td>'+diUnit+'</td>'+
                    '<td>'+diCc+'</td>'+
                    '</tr>'
                $(".a").append($tr);


            }
        }
    })
}